package com.server.common.redis.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * redis key前缀意义 常量
 * @author LXC
 * @date 2022/5/15 0:18
 */
public class RedisKeysConstant {
    //token
    public final static String TOKEN =  "Token:";

    //loginOnlineNum 登录次数
    public final static String LOGIN_ONLINE_NUM =  "loginOnlineNum:";

    //loginFailNum 登录失败次数
    public final static String LOGIN_FAIL_NUM =  "loginFailNum:";

    //tokenList
    public final static String TOKEN_LIST =  "TokenList:";

    //最后一次登录时间
    public final static String LAST_LOGIN_TIME =  "lastLoginTime:";

    //登录的验证码
    public final static String VERIFY_LOGIN_CODE =  "verifyCode:login";

    //请求次数限制
    public final static String REQUEST_FREQUENCY_LIMIT =  "requestFrequencyLimit:Limit:";
    //请求次数限超出，锁住
    public final static String REQUEST_FREQUENCY_LOCK =  "requestFrequencyLimit:Lock:";
}
